package com.hncc.kumao.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 实体类
 * @author Administrator *
 */
public class User implements Cloneable {
    
	private String id;//用户id
	private String username;//用户昵称
	@JSONField(serialize=false)
	private String password;//密码
	private String phone;//手机号，目前仅支持 11 位中国大陆手机号
	private String email;//邮箱地址
	private Date registerDate;//注册时间
	private String headPortraitUrl;//头像图片URL
	private Integer state;//用户状态0 表示正常、1 表示封禁
	private Long totalSize;//总空间大小，单位为B
	private Long useSize;//已使用的大小，单位为B
	
	@Override
	public Object clone() throws CloneNotSupportedException {
	    User user = null;
	    user = (User) super.clone();
	    return user;
	}
	
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public Date getRegisterDate() {
        return registerDate;
    }
    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }
    public String getHeadPortraitUrl() {
        return headPortraitUrl;
    }
    public void setHeadPortraitUrl(String headPortraitUrl) {
        this.headPortraitUrl = headPortraitUrl;
    }
    public Integer getState() {
        return state;
    }
    public void setState(Integer state) {
        this.state = state;
    }
    public Long getTotalSize() {
        return totalSize;
    }
    public Long getUseSize() {
        return useSize;
    }
    public void setTotalSize(Long totalSize) {
        this.totalSize = totalSize;
    }
    public void setUseSize(Long useSize) {
        this.useSize = useSize;
    }
    @Override
    public String toString() {
        return "User [id=" + id + ", username=" + username + ", password=" + password + ", phone=" + phone + ", email="
                + email + ", registerDate=" + registerDate + ", headPortraitUrl=" + headPortraitUrl + ", state=" + state
                + ", totalSize=" + totalSize + ", useSize=" + useSize + "]";
    }
}
